package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FxyFinancialVoucherWordMapper;
import com.ruoyi.system.domain.FxyFinancialVoucherWord;
import com.ruoyi.system.service.IFxyFinancialVoucherWordService;

/**
 * 凭证字Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-16
 */
@Service
public class FxyFinancialVoucherWordServiceImpl implements IFxyFinancialVoucherWordService 
{
    @Autowired
    private FxyFinancialVoucherWordMapper fxyFinancialVoucherWordMapper;

    /**
     * 查询凭证字
     * 
     * @param id 凭证字主键
     * @return 凭证字
     */
    @Override
    public FxyFinancialVoucherWord selectFxyFinancialVoucherWordById(Long id)
    {
        return fxyFinancialVoucherWordMapper.selectFxyFinancialVoucherWordById(id);
    }

    /**
     * 查询凭证字列表
     * 
     * @param fxyFinancialVoucherWord 凭证字
     * @return 凭证字
     */
    @Override
    public List<FxyFinancialVoucherWord> selectFxyFinancialVoucherWordList(Integer setsId)
    {
        return fxyFinancialVoucherWordMapper.selectFxyFinancialVoucherWordList(setsId);
    }

    /**
     * 新增凭证字
     * 
     * @param fxyFinancialVoucherWord 凭证字
     * @return 结果
     */
    @Override
    public int insertFxyFinancialVoucherWord(FxyFinancialVoucherWord fxyFinancialVoucherWord)
    {
        return fxyFinancialVoucherWordMapper.insertFxyFinancialVoucherWord(fxyFinancialVoucherWord);
    }

    /**
     * 修改凭证字
     * 
     * @param fxyFinancialVoucherWord 凭证字
     * @return 结果
     */
    @Override
    public int updateFxyFinancialVoucherWord(FxyFinancialVoucherWord fxyFinancialVoucherWord)
    {
        return fxyFinancialVoucherWordMapper.updateFxyFinancialVoucherWord(fxyFinancialVoucherWord);
    }

    /**
     * 批量删除凭证字
     * 
     * @param ids 需要删除的凭证字主键
     * @return 结果
     */
    @Override
    public int deleteFxyFinancialVoucherWordByIds(Long[] ids)
    {
        return fxyFinancialVoucherWordMapper.deleteFxyFinancialVoucherWordByIds(ids);
    }

    /**
     * 删除凭证字信息
     * 
     * @param id 凭证字主键
     * @return 结果
     */
    @Override
    public int deleteFxyFinancialVoucherWordById(Long id)
    {
        return fxyFinancialVoucherWordMapper.deleteFxyFinancialVoucherWordById(id);
    }
}
